package com.gzh.system.model.vo;

import com.gzh.system.service.dto.UploadIn;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

@Setter
@Getter
@ToString
public class UploadParam {

  private  MultipartFile file;

  private String bucketName;

  private String prePath;

  private String classify;

  public UploadIn paramToIn() {
    UploadIn in = new UploadIn();
    in.setFile(this.file);
    in.setBucketName(this.bucketName);
    in.setPrePath(this.prePath);
    in.setClassify(this.classify);
    return in;
  }
}
